package com.ztgf.commodity.models.service;

import com.ztgf.commodity.models.bo.CategoryMaintainNewSaveBO;
import com.ztgf.commodity.models.vo.CategoryAttributesBean;

import java.util.List;

/**
 * @Description: 类目维护
 * @Author: chenyu.wang
 * @Date: 2020.12.03 15:20
 */
public interface ICategoryMaintainService {

    /**
     * @Description: 根据类目id和品牌id查询所关联的属性
     * @Author: chenyu.wang
     * @Params: [categoryId, brandId]
     * @Date: 2020.12.03 15:20
     */
    CategoryAttributesBean queryCategoryBrandAttributes(Long categoryId, Long brandId);

    /**
     * @Description: 保存类目维护数据
     * @Author: chenyu.wang
     * @Params: [date]
     * @Date: 2020.12.04 11:28
     */
    void insertCategoryMaintenance(List<CategoryMaintainNewSaveBO> list);

    /**
     * @Description: 类目导入
     * @Author: chenyu.wang
     * @Params: [input]
     * @Date: 2020.12.16 14:52
     */
    boolean importCategoryAttributes(byte[] input, String fileName);

    /**
     * @Description: 异步处理导入成功的数据
     * @Author: chenyu.wang
     * @Params: []
     * @Date: 2020.12.30 16:53
     */
    void addImportDate();
}
